﻿<%@ Page language="c#" Codebehind="Listview.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Flow.Listview" %>
<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>Listview</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/css/table.css" />
<script language="javascript">
	function delete_confirm(e) {
		if (event.srcElement.outerText == "删除")
		event.returnValue =confirm("您确认要删除?");
	}
	document.onclick=delete_confirm;		
</script>
</head>
<body>
		<form id="Listview" method="post" runat="server">
<div class="m">
    <div class="path"><span class="right"><asp:button id="cmdNewFlow" runat="server" CssClass="redbuttoncss" Height="21px" Text="新建流程" Width="66px"></asp:button> <asp:button id="cmdDeleteFlow" runat="server" CssClass="redbuttoncss" Height="20px" Text="删除流程" Width="69px"></asp:button> <asp:button id="cmdManageStyle" runat="server" CssClass="redbuttoncss" Text="表单管理"></asp:button></span><a href="/SubModule/UnitiveDocument/Desktop.aspx">我的桌面</a> >> 文档流转</div>
<div class="con">
    <div class="tabnav">
        <p class="tabnavhead"> 
        <span id="bar1" class="active1 tnc">
        <asp:linkbutton id="lbMyApprove" runat="server">我的批阅</asp:linkbutton>
        </span>
        <span id="bar2" class="active1 tnc">
        <asp:linkbutton id="LinkButton1" runat="server">我的申请</asp:linkbutton>
        </span>
        <span id="bar3" class="active1 tnc">
        <asp:linkbutton id="lbMyApproved" runat="server">已经批阅</asp:linkbutton>
        </span>
        <span id="bar4" class="active1 tnc">
        <asp:linkbutton id="lbMyDraft" runat="server">拟稿箱</asp:linkbutton>
        </span>
        <%if(bManageFlow==true){%>
        <span id="bar5" class="active2 tnc">
        <asp:linkbutton id="lbManageFlow" runat="server">流程管理</asp:linkbutton>
        </span>
        <%}%>

        </p>
      </div>
        <asp:DataGrid id="dgFlowList" runat="server" Width="100%" AutoGenerateColumns="False" AllowSorting="True"
            AllowPaging="True"  OnPageIndexChanged="DataGrid_PageChanged" BorderColor="#337FB2"
            BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="4" PageSize="15" DataKeyField="Flow_ID"
            OnDeleteCommand="MyDataGrid_Delete">
            <SelectedItemStyle ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
            <AlternatingItemStyle  BackColor="#E8F4FF"></AlternatingItemStyle>
            <ItemStyle  ForeColor="#003399" BackColor="White"></ItemStyle>
            <HeaderStyle HorizontalAlign="Left" ForeColor="White" VerticalAlign="Middle"
                BackColor="#337FB2"></HeaderStyle>
            <FooterStyle ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
            <Columns>
                <asp:TemplateColumn HeaderText="ID">
                    <HeaderStyle Width="2%"></HeaderStyle>
                    <ItemTemplate>
                        <asp:CheckBox id="FlowID" runat="server"></asp:CheckBox>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:HyperLinkColumn DataNavigateUrlField="Flow_ID" DataNavigateUrlFormatString="ManageFlow.aspx?FlowID={0}"
                    DataTextField="Flow_Name" HeaderText="流程名">
                    <HeaderStyle  Width="15%"></HeaderStyle>
                    <ItemStyle ></ItemStyle>
                </asp:HyperLinkColumn>
                <asp:BoundColumn DataField="Remark" HeaderText="流程简介">
                    <HeaderStyle Width="30%"></HeaderStyle>
                </asp:BoundColumn>
                <asp:TemplateColumn HeaderText="流程图例">
                    <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center">										
                    </ItemStyle>
                    <ItemTemplate>
                    <a href ="DisplayFlow.aspx?FlowID=<%#DataBinder.Eval(Container,"DataItem.Flow_ID")%>">图例</a>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:HyperLinkColumn DataNavigateUrlField="Style_ID" DataNavigateUrlFormatString="DisplayStyle.aspx?StyleID={0}"
                    DataTextField="Style_Name" HeaderText="表格/附件">
                    <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:HyperLinkColumn>
                <asp:BoundColumn DataField="Build_Date" HeaderText="建立时间">
                    <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundColumn>
                <asp:TemplateColumn HeaderText="编辑">
                    <HeaderStyle HorizontalAlign="Center" Width="6%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    <ItemTemplate>
                        <a href ='EditFlow.aspx?FlowID=<%# DataBinder.Eval(Container, "DataItem.Flow_ID") %>'>
                            编辑</a>
                    </ItemTemplate>
                    <EditItemTemplate>
                    </EditItemTemplate>
                </asp:TemplateColumn>
                <asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete">
                    <HeaderStyle HorizontalAlign="Center" Width="6%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:ButtonColumn>
            </Columns>
            <PagerStyle NextPageText="" HorizontalAlign="Right" ForeColor="#003399" BackColor="#E8F4FF"
                Mode="NumericPages"></PagerStyle>
        </asp:DataGrid>
    </div>
  </div>
</form>
</body>
</html>